<div class="oe_top">
  <div class="oe_topcon">
    <div class="name">欢迎来到 <!--{$config.sitename}--></div>
    <!--{if $login.status == '0'}-->
    <div class="login_1">
      <a href="javascript:;" f="pop_jdlogin" class="a_1">登录</a>
      <a href="<!--{routeurl module='passport' action='reg'}-->" class="a_2">注册</a>
    </div>
    <div class="other_1">
      其它登录
       <!--{if $config.qqlogin.flag == '1'}--><a class="a_1" href='<!--{$oefile}-->?c=passport&a=auth&mod=qq' title="QQ登录"> </a><!--{/if}--><!--{if $config.sinalogin.flag == '1'}--><a class="a_2" href='<!--{$oefile}-->?c=passport&a=auth&mod=sina' title="新浪登录"> </a><!--{/if}--><!--{if $config.weixin_scanlogin == '1'}--><a class="a_3" href='<!--{$oefile}-->?c=passport&a=auth&mod=scanwx' title="微信登录"></a><!--{/if}-->
    </div>
    <!--{else}-->
	<div class="logined">
	  　<!--{$login.info.username}--> <!--{$login.group.levelimg}-->   <span>(<!--{$login.group.groupname}-->)</span>
       <i>|</i><a href="<!--{$urlpath}-->index.php?m=user">个人中心</a>
       <i>|</i> <a href="<!--{routeurl module='passport' action='logout'}-->">退出登录</a>
	</div>
      
    <!--{/if}-->
    <div class="usertool drop">
      <!--{if $login.status == '0'}-->
      <a href="javascript:;" f="pop_jdlogin" class="a_1"><i></i>升级会员</a>
      <!--{else}-->
      <a href="<!--{$urlpath}-->index.php?m=user&c=vip" class="a_1"><i></i>升级会员</a>
      <!--{/if}-->
      <dl class="cin">
        <dt><i></i>扫码交友</dt>
        <dd class="sub">
          <ul>
            <li>
              <img src="<!--{$urlpath}--><!--{$config.weixinqr}-->" />
              <p><i class="ico_1"></i>微信交友</p>
            </li>
            <li style="margin-left:30px;">
              <img src="<!--{$urlpath}--><!--{$config.mobileqr}-->" />
              <p><i class="ico_2"></i>手机交友</p>
            </li>
          </ul>
          <div class="clear"></div>
        </dd>
      </dl>
    </div>
    <div class="clear"></div>
  </div>
</div>
<div class="oe_menu nav0">
  <div class="oe_menucon">
    <div class="logo">
       <a href="<!--{$config.siteurl}-->"><img class="img" alt="<!--{$config.sitename}-->" title="<!--{$page_title}-->" src="<!--{$urlpath}--><!--{$config.logo}-->" /></a><img class="line" src="<!--{$skinpath}-->images/line.png"/>
    </div>
    <div class="text"> 
      <p class="p_1">实名婚恋</p>
      <p class="p_2">诚信认证联盟开创者！</p>
    </div>
    <div class="area drop">
      <dl class="cin">
        <dt>
		  <span>
		    <!--{if empty($city.cityname)}-->
		    全国
			<!--{else}-->
			<!--{$city.cityname}-->
			<!--{/if}-->
		  </span>
		  <em></em>
	    </dt>
        <dd class="sub">
          <ul>
			<!--{assign var="citytype_list" value=vo_list("mod={volistvar} where={citytype}")}-->
			<!--{foreach $citytype_list as $volist}-->
			<li>
			<span><!--{$volist.text}--></span>
			<!--{assign var="city_list" value=vo_list("mod={city} where={v.citytype='<!--{$volist.value}-->'} num={20}")}-->
			<!--{foreach $city_list as $val}-->
			<a href="<!--{$val.url}-->"><!--{$val.cityname}--></a>
			<!--{/foreach}-->
			<div class="clear"></div>
			</li>
			<!--{/foreach}-->
          </ul>
          <div class="btn"> <a href="<!--{routeurl module='city'}-->">全部城市</a> </div>
        </dd>
      </dl>
    </div>
    <div class="oe_mn">
      <ul>
        <li><a href="<!--{$urlpath}-->index.php?m=user">个人中心</a></li>
	    <li<!--{if $menu_id == 'user'}--> class='current'<!--{/if}-->><a href="<!--{routeurl module='user'}-->">会员</a></li>
	    <li<!--{if $menu_id == 'party'}--> class='current'<!--{/if}-->><a href="<!--{routeurl module='party'}-->">活动</a></li>
	    <li<!--{if $menu_id == 'marry'}--> class='current'<!--{/if}-->><a href="<!--{routeurl module='marry'}-->">征婚</a><i></i></li>

      </ul>
    </div>
    <div class="clear"></div>
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){
    //是头部的高度加头部与nav导航之间的距离
    var topMain=10;
    var nav=$(".nav0");
    $(window).scroll(function(){
        if ($(window).scrollTop()>topMain){
        //如果滚动条顶部的距离大于topMain则就nav导航就添加类.nav_scroll，否则就移除
        nav.addClass("current").removeClass("nav0");
    }else{
        nav.removeClass("current").addClass("nav0");;
    }
    });
})
</script>